<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>
    <meta charset="UTF-8" />
    <title></title>
    <style type="text/css" th:inline="text">
        #tbc {
            height: 100px;
            color: #000;
            background-image: url("[[@{/img/1.jpg}]]");
        }
    </style>
</head>
<body>
<h2>这是首页</h2>



<p th:text="${name}"></p>
<shiro:user>欢迎登陆用户</shiro:user>
<p shiro:hasPermission="/user/list">拥有/user/list权限</p>

<div th:include="layout/footer::footer"></div>

<div th:href="@{/}"></div>
<div  id="tbc" ></div>

<script th:inline="javascript">

    //在js及css中取到相应的值
    var name = [[${name}]];
    console.log("1236" + name);
    console.log([[${name}]])

</script>
</body>
</html>